package com.qianyu.project.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 分包付款
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class SubcontractPayment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 项目ID
     */
    private Integer pId;

    /**
     * 源单号
     */
    private Integer conId;

    /**
     * 付款ID
     */
    private Integer fkId;

    /**
     * 分包单位ID
     */
    private Integer proId;

    /**
     * 付款名称
     */
    private String paymentName;

    /**
     * 合同名称
     */

    /**
     * 合同金额
     */
    private BigDecimal contractAmount;


    /**
     * 批复金额
     */
    private BigDecimal agreeAmount;

    /**
     * 收款金额大写
     */
    private String agreeUpper;

    /**
     * 罚款
     */
    private BigDecimal penalty;

    /**
     * 扣款
     */
    private BigDecimal withhold;

    /**
     * 结算说明
     */
    private String settleComment;

    /**
     * 经办人
     */
    private Integer eId;

    /**
     * 申报日期
     */
    private String applyDate;

    /**
     * 审批状态
     */
    private Integer approveStatus;

    /**
     * 付款金额
     */
    private BigDecimal fkAmount;

    /**
     * 付款类型
     */
    private String fkType;

    /**
     * 开户行名称
     */
    private Integer bId;

    /**
     * 银行账户
     */
    private String yhzh;


    private String attachIds;
    /**
     * 备注
     */
    private String comment;

    /**
     * 更新日期
     */
    private String updateDate;

    @TableField(exist = false)
    private String providerName;

    @TableField(exist = false)
    private String projectName;

//    @TableField(exist = false)
//    private BigDecimal contractAmount;


    @TableField(exist = false)
    private String name;


}
